from django.urls import path

from .views import (
    index, news_detail,news_list,  add_news_comment, comment_with_news,
    search,
    test_form, test_data,
)

# reverse(news:index)
# reverse(news:search)
app_name = "news"


urlpatterns = [
    path("", index, name="index"),
    path("news/detail/<int:news_id>", news_detail, name="news_detail"),
    path("news/list/", news_list, name="news_list"),
    path("news/add-comment/", add_news_comment, name="add_news_comment"),
    path("news/comment/list/", comment_with_news, name="comment_with_news"),
    path("search/", search, name="search"),
    path("test-form/", test_form, name="test_form"),
    path("test-data/", test_data, name="test_data"),
]
